package com.example.firstdemo.ui.screens.pages.addProblem.addProblem.selectPosition

import com.example.firstdemo.network.api.addProblem.data.PositionDictData
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.asSharedFlow

object SelectPositionEvent {
    private val _position = MutableSharedFlow<PositionDictData>()
    val position = _position.asSharedFlow()

    suspend fun emit(position: PositionDictData) {
        _position.emit(position)
    }
}